/*
 * @Description: 告警类别管理
 */
import zhreq from "@/api/index";
export default {
  /**
   * @description: 获取告警类型列表 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   */
  queryPageByCondition(params) {
    return zhreq.post("/alarm/alarmType/queryPageByCondition", {
      ...params,
    });
  },
  /**
   * @description: 添加
   * @param {Object}  *
   */
  addlist(params) {
    return zhreq.post('/alarm/alarmType/add', {
      ...params,
      systemFlag: "flag",
    });
  },
  /**
   * @description: 批量删除
   * @param {Object}  *
   */
  dellist(params) {
    return zhreq.get('/alarm/alarmType/delListById', {
      'idList': params
    });
  }, /**
  * @description: 单个删除
  * @param {Object}  *
  */
  del(params) {
    return zhreq.get(`/alarm/alarmType/delById`, { id: params });
  },
  /**
   * @description: 修改
   * @param {Object}  *
   */
  editlist(params) {
    return zhreq.post('/alarm/alarmType/edit', {
      ...params,
      systemFlag: "flag",
    });
  },
  /**
   * @description: 条件查询
   * @param {Object}  *
   */
  queryByCondition(params) {
    return zhreq.post('/alarm/alarmType/queryByCondition', {
      ...params
    });
  },
};
